let arr = [
    {
        path: '/index',
        name: '平台首页',
        icon: 'House',
        hierarchy: 1, //当前层级
        component: 'index/index.vue'
    },
    {
        path: '/goods',
        name: '商品管理',
        icon: 'Goods',
        hierarchy: 1, //当前层级
        children: [
            {
                path: '/goods/goods',
                name: '全部商品',
                icon: 'Upload',
                hierarchy: 2,
                component: 'goods/goods.vue' //组件在项目中的文件路径
            },
            {
                path: '/goods/up',
                name: '商品上架',
                icon: 'Upload',
                hierarchy: 2,
                component: 'goods/up.vue' //组件在项目中的文件路径
            },

        ]
    },
    {
        path: '/order',
        name: '订单管理',
        icon: 'Files',
        hierarchy: 1,
        children: [
            {
                path: '/order/list/:orderID',
                name: '订单列表',
                icon: 'Tickets',
                hierarchy: 2,
                component: 'order/list.vue'
            },
            {
                path: '/order/details',
                name: '订单详情',
                icon: 'Tickets',
                hierarchy: 2,
                component: 'order/details.vue'
            },
            {
                path: '/order/return',
                name: '售后订单',
                icon: 'FolderDelete',
                hierarchy: 2,
                component: 'order/return.vue'
            }
        ]
    },
    {
        path: '/auth',
        name: '权限管理',
        icon: 'Avatar',
         hierarchy: 1,
        children: [
            {
                path: '/auth/menu-manage',
                name: '菜单管理',
                icon: 'Menu',
                hierarchy: 2,
                component: 'auth/menu-manage.vue'
            },
            {
                path: '/auth/product-manage',
                name: '角色管理',
                icon: 'UserFilled',
                hierarchy: 2,
                component: 'auth/product-manage.vue'
            },
            {
                path: '/auth/promising',
                name: '资源管理',
                icon: 'SetUp',
                hierarchy: 2,
                component: 'auth/promising.vue'
            }
        ]
    },
    {
        path: '/system',
        name: '设置',
        icon: 'Tools',
        hierarchy: 1,
        children: [

            { path: '/system/account',
                name: '账号列表',
                icon: 'Tools',
                hierarchy: 2,
                component: 'system/account.vue',
            },
            { path: '/system/addAccount',
                name: '添加用户',
                icon: 'Tools',
                hierarchy: 2,
                component: 'system/addAccount.vue',
            },
            { path: '/system/accountLog',
                name: '账号日志',
                icon: 'Tools',
                hierarchy: 2,
                component: 'system/accountLog.vue',},
            { path: '/system/auditing',
                name: '审计话术',
                icon: 'Tools',
                hierarchy: 2,
                component: 'system/auditing.vue',},
            { path: '/system/protocolRule',
                name: '协议规则',
                icon: 'Tools',
                hierarchy: 2,
                component: 'system/protocolRule.vue',},
            { path: '/system/role',
                name: '角色管理',
                icon: 'Tools',
                hierarchy: 2,
                component: 'system/role.vue',},
            { path: '/system/serviceSupport',
                name: '服务支持',
                icon: 'Tools',
                hierarchy: 2,
                component: 'system/serviceSupport.vue',},
            {
                path: '/system/shopRole',
                name: '店铺角色配置',
                icon: 'Tools',
                hierarchy: 2,
                component: 'system/shopRole.vue',
            },

        ]
    },
    {
        path: '/poster',
        name: '广告管理',
        icon: 'TrophyBase',
        hierarchy: 1,
        children: [
            {
                name: '轮播图管理',
                path: '/poster/index',
                icon: '',
                hierarchy: 2,
                component: 'poster/banner/Index.vue',
            },
            {
                hidden: true,
                name: '添加轮播图',
                path: '/poster/add',
                icon: '',
                hierarchy: 2,
                component: 'poster/banner/Add.vue',
            }
        ]
    },
    {
        path: '/service',
        name: '客服',
        icon: 'Service',
        hierarchy: 1,
        component: 'service/index.vue'
    }
]
export const getMenu = ()=> {
    return new Promise((resolve)=> {
        setTimeout(()=> {
            resolve(arr)
        }, 1000)
    })
}
